<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/11/23
  Time: 19:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page isELIgnored="false" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>商品详情</title>
    <style>
        h2,p {
            margin: 0;
            padding: 0;
        }
        a {
            text-decoration: none;

        }
        img {
            display: block;
            border: none;
        }
        body {
            background-color:  #ef4b4b;
        }
        .rg_layout {
            border-radius: 11px;
            overflow: hidden;
            height: 550px;
            width: 950px;
            margin: 90px auto;
            background-color: #fff;
            border: 7px solid #eee;
        }
        .rg_left {
            float: left;
        }
        .rg_right {
            height: 100%;
            width: 430px;
            position: relative;
            float: left;
            margin-top: 30px;
            margin-left: 10px;
        }
        .rg_left img {
            width: 400px;
            height: 400px;
            margin: 20px;
        }
        .rg_left h3 {
            padding: 10px 20px 10px 20px;
            font-size: 20px;
            width: 400px;
        }
        .rg_right h2 {
            font-size: 40px;
            color: #f70808;
            margin-left: 150px;
        }
        .rg_right p {
            overflow: hidden;
            word-wrap:break-word;
            height: 233px;
            text-indent: 2em;
            padding-right: 10px;
            margin-left: 50px;
            margin-top: 40px;
            font-size: 20px;
        }
        .rg_right span {
            position: absolute;
            font-size: 30px;
            color: #e4393c;
            bottom: 190px;
            right: 63px;
        }
        .bottom_buy {
            position: absolute;
            bottom: 121px;
            background-color: #df3033;
            height: 46px;
            width: 142px;
            right: 63px;
        }
        .bottom_buy a {
            line-height: 46px;
            text-decoration: none;
            color: #fff;
            font-size: 19px;
            padding: 0 23px;
        }
    </style>
</head>
<body>
<div class="rg_layout">
    <div class="rg_left">
        <img src="../imgs/${good.gsrc}">
        <h3>${good.gname}</h3>
    </div>
    <div class="rg_right">
        <h2>商品介绍</h2>
        <p>${good.gtext}</p>
        <span>￥${good.gprice}</span>
        <div class="bottom_buy"><a href="/good/addOneGood?gid=${good.gid}">加入购物车</a></div>
    </div>
</div>
</body>
</html>
